/**
 * 导入包
 */
var netcore = require('../../../utils/network.js')
var tripleDes = require('../../../utils/CKCrypto.js')

function getBanners(type,callBack){
  var map=new Map();
  map.set("type",type);
  map.set("channel","1")
  netcore.requestPost("apiController/getBanners.do",map,function(data){
    callBack(data)
  },function(code,errMsg){
    wx.showToast({
      title: ""+errMsg,
    })
  })
}
function getSchoolBanners(type, callBack) {
  var map = new Map();
  map.set("type", type);
  map.set("channel", "1")
  netcore.requestPost("apiController/getTeacherBanners.do", map, function (data) {
    callBack(data)
  }, function (code, errMsg) {
    wx.showToast({
      title: "" + errMsg,
    })
  })
}
module.exports = {
  getBanners: getBanners,
  getSchoolBanners:getSchoolBanners
}